package com.tkjt.pms.modules.performances.constant;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public class CalcuConsts {
	
	public final static String INDEX_UNIT = "unit";
	public final static String INDEX_GROUP = "group";


	public final static String RET_SUCCESS = "success";
    public final static String RET_SUCCESS_CODE = "0000";
	public final static String RET_FAIL = "fail";
    public final static String RET_FAIL_CODE = "9999";
    public final static String RET_PARAM_FAIL = "this param is error";
    public final static String RET_PARAM_FAILCODE = "0001";

	public final static String RET_MISS_DATA = "missData";
	
	public final static String ITEM_INDEX_VALUE_CODE = "indexValueCode";
	public final static String ITEM_ORG_CODE = "orgCode";
	
	public final static String ITEM_DATA_BASE = "dataBase";
	public static final String  ITEM_MBZ = "mbz"; //目标值
	public static final String  ITEM_SJZ = "sjz"; //实际值
	public static final String  ITEM_DCL = "dcl"; //达成率
	
	public static final String  ITEM_WEIGHT = "weight"; //权重
	
	public static final String  ITEM_INDEPENDENT = "Independent"; //独立
	public static final String  ITEM_NURSING = "nursing"; //护理
	public static final String  ITEM_REHABILITATION = "rehabilitation"; //康复
	
	public static final String ITEM_SQS = "A01A01A01A15";//社区&医院 社区合计
	public static final String ITEM_YQS = "A01A01A01A14";//社区&医院 园区合计
	public static final String ITEM_YYS = "A01A01A01A13";//社区&医院 医院合计
	
	public static final String ITEM_ORG_PAIR = "orgPair";//组织组(**医院 + **社区)
	
	public static final String ITEM_ORG_ALL = "orgall";//园区合计（所有组织机构）
	public static final String ITEM_COMM_ALL = "commall";//社区合计（所有社区组织机构）
	public static final String ITEM_HOSP_ALL = "hospall";//医院合计（所有医院组织机构）
	
	public static final String ITEM_YANYSQ = "A01A01A01A01";//燕园社区
	public static final String ITEM_SHENYSQ = "A01A01A01A03";//申园社区
	public static final String ITEM_YUEYSQ = "A01A01A01A05";//粤园社区
	public static final String ITEM_SHUYSQ = "A01A01A01A11";//蜀园社区

	public static final String ITEM_SHEQU = "shequ";//社区
	
	public static final String ITEM_XIAOJI = "xiaoji";//小计
	public static final String ITEM_ZONGJI = "zongji";//总计
	
	public static final String ITEM_DL = "A01A01A02A13"; //独立
	public static final String ITEM_HL = "A01A01A02A14"; //护理
	public static final String ITEM_KF = "A01A01A02A15"; //康复
	
	public final static String ITEM_DF = "df";
	public final static String ITEM_DATA = "data";
    public final static String ITEM_PARAM0 = "param0";//入参
    public final static String ITEM_PARAM1 = "param1";//入参
    public final static String ITEM_PARAM2 = "param2";//入参
    public final static String ITEM_PARAM3 = "param3";
    public final static String ITEM_PARAM4 = "param4";
    public final static String ITEM_PARAM5 = "param5";
    public final static String ITEM_PARAM6 = "param6";
    public final static String ITEM_PARAM7 = "param7";
    public final static String ITEM_PARAM8 = "param8";
    public final static String ITEM_PARAM9 = "param9";
    public final static String ITEM_PARAM10 = "param10";
    public final static String ITEM_PARAM11 = "param11";
    public final static String ITEM_PARAM12 = "param12";
    public final static String ITEM_PARAM13 = "param13";
    public final static String ITEM_PARAM14 = "param14";
    public final static String ITEM_PARAM15 = "param15";
    public final static String ITEM_PARAM16 = "param16";
    public final static String ITEM_PARAM17 = "param17";
    public final static String ITEM_PARAM18 = "param18";
    public final static String ITEM_PARAM19 = "param19";
    public final static String ITEM_PARAM20 = "param20";
    public final static String ITEM_PARAM21 = "param21";
    public final static String ITEM_PARAM22 = "param22";
    public final static String ITEM_PARAM23 = "param23";
    public final static String ITEM_PARAM24 = "param24";



    public final static String ITEM_SR_DF = "srdf";
	public final static String ITEM_LK_DF = "lkdf";
	public final static String ITEM_FLK_DF = "flkdf";
	public final static String ITEM_JLR_DF = "jlrdf";
	public final static String ITEM_JXZ_DF = "jxzdf";
	public final static String ITEM_SJZ_Y = "sjzy";
	public final static String ITEM_SJZ_D = "sjzd";
	
	public final static String ITEM_DLQ_SJZ = "dlqsjz";
	public final static String ITEM_HLQ_SJZ = "hlqsjz";
	public final static String ITEM_YYZY_SJZ = "yyzysjz";
	public final static String ITEM_YYMZ_SJZ = "yymzsjz";
	
	public final static String ITEM_SR_QZ = "srqz";
	public final static String ITEM_JLR_QZ = "jlrqz";
	public final static String ITEM_JXZ_QZ = "jxzqz";
	
	
	public final static String ITEM_P100 = "p100";
	public final static String ITEM_P99 = "p99";
	public final static String ITEM_P98 = "p98";
	public final static String ITEM_P97 = "p97";
	
	
	
	
	
	public final static String ITEM_M_TOTAL = "mTotal";
	
	public final static String ITEM_RS = "rs";
	
	
	public final static String ITEM_M_M = "m";
	public final static String ITEM_M_M01 = "m01";
	public final static String ITEM_M_M02 = "m02";
	public final static String ITEM_M_M03 = "m03";
	public final static String ITEM_M_M04 = "m04";
	public final static String ITEM_M_M05 = "m05";
	public final static String ITEM_M_M06 = "m06";
	public final static String ITEM_M_M07 = "m07";
	public final static String ITEM_M_M08 = "m08";
	public final static String ITEM_M_M09 = "m09";
	public final static String ITEM_M_M10 = "m10";
	public final static String ITEM_M_M11 = "m11";
	public final static String ITEM_M_M12 = "m12";
	
	public final static String ITEM_M_MOTH = "month";
	public final static String ITEM_M_SEASON = "season";
	public final static String ITEM_M_Q = "q";
	public final static String ITEM_M_Q01 = "q01";
	public final static String ITEM_M_Q02 = "q02";
	public final static String ITEM_M_Q03 = "q03";
	public final static String ITEM_M_Q04 = "q04";
	

	
	
	// 月份对应关键字
	public static final Map<String, String> dictMothMap;  
    static  
    {  
    	dictMothMap = new HashMap<String, String>();  
    	dictMothMap.put("1", "m01");  
    	dictMothMap.put("2", "m02"); 
    	dictMothMap.put("3", "m03");
    	dictMothMap.put("4", "m04");
    	dictMothMap.put("5", "m05");
    	dictMothMap.put("6", "m06");
    	dictMothMap.put("7", "m07");
    	dictMothMap.put("8", "m08");
    	dictMothMap.put("9", "m09");
    	dictMothMap.put("10", "m10");
    	dictMothMap.put("11", "m11");
    	dictMothMap.put("12", "m12");
    }
    
	
    public static final Map<String, Set<String>> MONTH_SEASON_MAP;  
    static  
    {  
    	MONTH_SEASON_MAP = new HashMap<String, Set<String>>(); 
    	Set<String> q01 = new HashSet<String>();
    	q01.add("m01");
    	q01.add("m02");
    	q01.add("m03");
    	MONTH_SEASON_MAP.put("q01", q01);
    	Set<String> q02 = new HashSet<String>();
    	q02.add("m04");
    	q02.add("m05");
    	q02.add("m06");
    	MONTH_SEASON_MAP.put("q02", q02); 
    	Set<String> q03 = new HashSet<String>();
    	q03.add("m07");
    	q03.add("m08");
    	q03.add("m09");
    	MONTH_SEASON_MAP.put("q03", q03);
    	Set<String> q04 = new HashSet<String>();
    	q04.add("m10");
    	q04.add("m11");
    	q04.add("m12");
    	MONTH_SEASON_MAP.put("q04", q04);
    }  
    
    public final static String ITEM_M_KGIAAA001VA004 = "KGIAAA001VA004"; //收入指标-事业群指标得分
    public final static String ITEM_M_KGIAAA001VD001 = "KGIAAA001VD001"; //收入指标得分
    public final static String ITEM_M_KGIAAA002VA004 = "KGIAAA002VA004"; //净利润指标-事业群指标得分
    public final static String ITEM_M_KGIAAA002VD001 = "KGIAAA002VD001"; //净利润指标得分
    public final static String ITEM_M_KGIAAA003VB001 = "KGIAAA003VB001"; //净新增指标得分
    public final static String ITEM_M_KGIAAB001VB001 = "KGIAAB001VB001"; //独立区健康评估按时完成率（联考）得分
    public final static String ITEM_M_KGIAAB002VB001 = "KGIAAB002VB001"; //独立区年度体检完成率（联考）得分
    public final static String ITEM_M_KGIAAB003VB001 = "KGIAAB003VB001"; //独立区跌倒致重伤发生率（联考）得分
    public final static String ITEM_M_KGIAAB004VB001 = "KGIAAB004VB001"; //入住合同签署完成率得分
    public final static String ITEM_M_KGIAAB005VB001 = "KGIAAB005VB001"; //TK-LTC体系执行符合率得分
    public final static String ITEM_M_KGIAAB006VB001 = "KGIAAB006VB001"; //TKR体系执行符合率得分
    public final static String ITEM_M_KGIAAB007VB001 = "KGIAAB007VB001"; //康复医院门诊病历书写合格率得分
    public final static String ITEM_M_KGIAAB008VB001 = "KGIAAB008VB001"; //康复医院甲级病案率得分
    public final static String ITEM_M_KGIAAB009VB001 = "KGIAAB009VB001"; //养康客户满意度（联考）得分
    public final static String ITEM_M_KGIAAB010VB001 = "KGIAAB010VB001"; //养康NPS得分
    public final static String ITEM_M_KGIAAB013VB001 = "KGIAAB013VB001"; //全景及专项计划得分
    public final static String ITEM_M_KGIAAB014VB001 = "KGIAAB014VB001"; //2019核心制度得分
    public final static String ITEM_M_KGIAAB015VB001 = "KGIAAB015VB001"; //战略项目得分
    public final static String ITEM_M_KGIAAB016VA001 = "KGIAAB016VA001"; //医养融合得分
    public final static String ITEM_M_KGIAAB017VA001 = "KGIAAB017VA001"; //重点工作完成得分
    
    public final static String ITEM_M_KGIAAB000VA000 = "KGIAAB000VA000";//经营利润得分+权重项得分
    
    public final static String ITEM_M_KGIAAC001VB001 = "KGIAAC001VB001"; //关键信息正确率得分
    public final static String ITEM_M_KGIAAC003VB001 = "KGIAAC003VB001"; //主流客户占比得分
    public final static String ITEM_M_KGIAAC004VB001 = "KGIAAC004VB001"; //院感得分
    public final static String ITEM_M_KGIAAC005VB001 = "KGIAAC005VB001"; //质量改进情况得分
    public final static String ITEM_M_KGIAAC006VB001 = "KGIAAC006VB001"; //投诉事件扣分得分
    public final static String ITEM_M_KGIAAC007VB001 = "KGIAAC007VB001"; //质量安全扣分得分
    
    
    public final static String ITEM_M_IAAA001  = "IAAA001";   //事业群收入
    public final static String ITEM_M_IAAA002  = "IAAA002";	  //事业群净利润
    public final static String ITEM_M_IAAA003  = "IAAA003";   //事业群净新增
    public final static String ITEM_M_IAAB001  = "IAAB001";   //独立区健康评估按时完成率（联考）
    public final static String ITEM_M_IAAB002  = "IAAB002";   //独立区年度体检完成率（联考）
    public final static String ITEM_M_IAAB003  = "IAAB003";   //独立区跌倒致重伤发生率（联考）
    public final static String ITEM_M_IAAB004  = "IAAB004";   //入住合同签署完成率
    public final static String ITEM_M_IAAB005  = "IAAB005";   //TK-LTC体系执行符合率
    public final static String ITEM_M_IAAB006  = "IAAB006";   //TKR体系执行符合率
    public final static String ITEM_M_IAAB007  = "IAAB007";   //康复医院门诊病历书写合格率 
    public final static String ITEM_M_IAAB008  = "IAAB008";   //康复医院甲级病案率
    public final static String ITEM_M_IAAB009  = "IAAB009";   //养康客户满意度（联考）
    public final static String ITEM_M_IAAB010  = "IAAB010";   //养康NPS
    public final static String ITEM_M_IAAB013  = "IAAB013";   //全景及专项计划
    public final static String ITEM_M_IAAB014  = "IAAB014";   //2019核心制度
    public final static String ITEM_M_IAAB015  = "IAAB015";   //战略项目
    public final static String ITEM_M_IAAB016  = "IAAB016";   //医养融合
    public final static String ITEM_M_IAAB017  = "IAAB017";   //重点工作完成
    
    public final static String ITEM_M_IAAC001  = "IAAC001";   //关键信息正确率
    public final static String ITEM_M_IAAC003  = "IAAC003";   //主流客户占比
    public final static String ITEM_M_IAAC004  = "IAAC004";   //院感
    public final static String ITEM_M_IAAC005  = "IAAC005";   //质量改进情况
    public final static String ITEM_M_IAAC006  = "IAAC006";   //投诉事件扣分
    public final static String ITEM_M_IAAC007  = "IAAC007";   //质量安全扣分


    

}
